package com.example.userproducer.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.example.userproducer.dao.UserDao;
import com.example.userproducer.model.User;
import com.example.userproducer.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;


import java.util.List;

/**
 * @author 杰哥
 * @Title: UserServiceImpl
 * @ProjectName user-producer
 * @Description: TODO
 * @date 2019/9/1115:24
 */
@Component
@Service(interfaceClass = UserService.class)
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;

    @Override
    public List<User> findByAll() {
        return userDao.findAll();
    }
}
